package com.IO.ReadAndWrite;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

/***
 * @ClassName: PrintWriteTest
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 12:59 2022/2/7
 * @version : V1.0
 */
public class PrintWriteTest {
    public static void main(String[] args) {
        printWriteTest();
    }
    public static void printWriteTest(){
        try {
            PrintWriter printWriter = new PrintWriter("d:\\print.txt");
            printWriter.println("你好我好");
            printWriter.println("fiififif");
            printWriter.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}
